package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseShipRoute;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseShipRoute is a Querydsl query type for EBaseShipRoute
 */
@Label("航线基本信息表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseShipRoute extends RelationalPathBase<EBaseShipRoute> {

    private static final long serialVersionUID = 146591635;

    public static final QBaseShipRoute baseShipRoute = new QBaseShipRoute("base_ship_route");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseShipRoute> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseShipRoutePrice> _baseShipRoutePriceBaseShipRoute1Fk = createInvForeignKey(id, "base_shipRoute_id");

    }

    public final StringPath baseShipRouteName = createString("baseShipRouteName");

    public final StringPath comments = createString("comments");

    public final StringPath destPort = createString("destPort");

    public final StringPath endCity = createString("endCity");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath startCity = createString("startCity");

    public final StringPath startPort = createString("startPort");

    public final StringPath status = createString("status");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseShipRoute(String variable) {
        super(EBaseShipRoute.class, forVariable(variable), "null", "base_ship_route");
        addMetadata();
    }

    public QBaseShipRoute(String variable, String schema, String table) {
        super(EBaseShipRoute.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseShipRoute(Path<? extends EBaseShipRoute> path) {
        super(path.getType(), path.getMetadata(), "null", "base_ship_route");
        addMetadata();
    }

    public QBaseShipRoute(PathMetadata<?> metadata) {
        super(EBaseShipRoute.class, metadata, "null", "base_ship_route");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(baseShipRouteName, ColumnMetadata.named("baseShipRouteName").withIndex(9).ofType(Types.VARCHAR).withSize(100));
        addMetadata(comments, ColumnMetadata.named("comments").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(destPort, ColumnMetadata.named("destPort").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(endCity, ColumnMetadata.named("endCity").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(8).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(startCity, ColumnMetadata.named("startCity").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(startPort, ColumnMetadata.named("startPort").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(status, ColumnMetadata.named("status").withIndex(6).ofType(Types.VARCHAR).withSize(45));
    }

}

